﻿using RabbitMQ.Client;

namespace Contione.RabbitMQ.Client
{
    public interface IRabbitMQClient
    {

        /// <summary>
        ///获取连接对象
        /// </summary>
        /// <returns></returns>
        IConnection GetConnection();

        /// <summary>
        /// 创建链接对象
        /// </summary>
        /// <returns></returns>
        IConnection CreateNewConnection();

    }
}